define(function (require) {
    var Base = require('app/Base'),
        controller = require('../BaseController'),
        template = require('text!./home.html'),
        model = {
            key1: 'iScroll页面-----可点',
            key2: '测试1',
            key3: '测试2'
        };
    /**
     * 对外暴露函数，用于视图加载
     */
    var load = function () {
        render();
        bind();
        run();
    };

    // setModel
    /**
     * 视图渲染
     */
    function render() {
        controller.setTemplate(template);
        controller.setModel(model);
        controller.render(Base.getViewContainer());
    }

    /**
     * 事件绑定
     */
    function bind() {
        $('#goIScroll').click(function () {
            location.hash = "iScrollPage";
            document.title = 'iScroll页面';
        });
    }

    /**
     * 除事件绑定
     */

    function run() {
    }

    return {
        load: load
    };
});